<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>物业管理软件</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
	<meta name="author" content="Muhammad Usman">
<#include "*/pubcss.ftl">	
</head>

<body>
<div class="container-fluid" id="print_content">
	<div class="row-fluid">
	   <div class="span12" align="center">
	    <H2>收据</H2>
	   </div>
	</div><!--/fluid-row-->	
	<br>
	<table border='0' class="table"style="width:93%;">
	<tr>
	   <td>
		流水号:${(recordsVO.frcode)?if_exists}
	   </td>
	   <td>
		年月:${(recordsVO.ymonth)?if_exists}
	   </td>
	   <td>
		业主:${(recordsVO.rname)?if_exists}
	   </td>
	   <td>
		房号:${(recordsVO.rid)?if_exists}
	   </td>
	   <td>
		打印时间:${(recordsVO.ctime)?if_exists}
	   </td>
	<tr>
	</table>
	<table class="table table-bordered table-striped table-condensed"  border="1"  style="width:93%;border:solid 1px black;border-collapse:collapse" id="dynamictable">
		<thead>
			<tr>
				<th>项目</th>
				<th>本期读数</th>
				<th>上期读数</th>
				<th>走表量</th>
				<th>附加量</th>
				<th>实用量</th>
				<th>档</th>
				<th>计费量</th>
				<th>单价</th>
				<th>金额</th>
			</tr>
		</thead>   
		<tbody>
		    <#assign index=1>
		    <#list (recordsVO.items)?if_exists as item>
			<tr>
				<td class="center">${(item.iname)?if_exists}</td>
				<td class="center" align="right">${(item.currentreading)?if_exists}</td>
				<td class="center" align="right">${(item.thereadings)?if_exists}</td>
				<td class="center" align="right">${(item.walk)?if_exists}</td>
				<td class="center" align="right">${(item.amount)?if_exists}</td>
				<td class="center" align="right">${(item.actual)?if_exists}</td>
				<td class="center" align="right">${(item.target)?if_exists}</td>
				<td class="center" align="right">${(item.countsum)?if_exists}</td>
				<td class="center" align="right">${(item.price)?if_exists}</td>
				<td class="center" align="right">${(item.ymoney)?if_exists}</td>
			</tr>
			<#assign index=index+1>
			</#list>
			<tr>
				<td class="center">&nbsp;</td>
				<td class="center" align="right"></td>
				<td class="center" align="right"></td>
				<td class="center" align="right"></td>
				<td class="center" align="right"></td>
				<td class="center" align="right"></td>
				<td class="center" align="right"></td>
				<td class="center" align="right"></td>
				<td class="center" align="right"></td>
				<td class="center" align="right"></td>
			</tr>
			<tr>
				<td class="center">本期费用</td>
				<td class="center" align="right">${(recordsVO.bfees)?if_exists}</td>
				<td class="center">往期欠费</td>
				<td class="center" align="right">${(recordsVO.warrearage)?if_exists}</td>
				<td class="center">应缴费</td>
				<td class="center" align="right">${(recordsVO.shouldpay)?if_exists}</td>
				<td class="center">本次缴费</td>
				<td class="center">${(recordsVO.realpay)?if_exists}</td>
				<td class="center" align="right">找零</td>
				<td class="center">${(recordsVO.charge)?if_exists}</td>
			</tr>
		</tbody>
	</table>
	<table border='0' class="table" style="width:93%;">
	<tr>
	<td>
	操作员:${(recordsVO.opername)?if_exists}
	</td>
	<td>
	收款人:${(recordsVO.pname)?if_exists}
	</td>
	</tr>
	</table>
</div><!--/.fluid-container-->
<#include "*/importprint.ftl">		
<script src="${base}/script/bootstrap/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
function prn1_preview() {	
	CreateOneFormPage();	
	return LODOP.PREVIEW();	
}
function CreateOneFormPage(){
	LODOP=getLodop();  
	LODOP.SET_PRINT_STYLE("FontSize",18);
	LODOP.SET_PRINT_STYLE("Bold",1);
	LODOP.ADD_PRINT_HTM(25,30,"100%","100%",document.getElementById("print_content").innerHTML);
};
$(document).ready(function(){
	prn1_preview();
});
</script>
</body>
</html>
